package com.yi.wood.service.exception;


import com.yi.wood.base.Result;
import com.yi.wood.base.ResultCodeEnum;
import com.yi.wood.exception.BaseException;

/**
 * @author moyi
 */
public class BusinessException extends BaseException {
    private Result result;


    public BusinessException(String message) {
        super(message);
        this.result = new Result(ResultCodeEnum.BUSINESS_FAILED, message);
    }

    public BusinessException(){

    }

    public BusinessException(Result result) {
        this.result = result;
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }
}
